package com.yonyou.gmmc.service.customer.model;

import java.util.Date;
import javax.persistence.*;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

@Table(name = "TM_CAR_OWNER")
public class TmCarOwner {
    @Id
    @Column(name = "USER_ID")
    @SequenceGenerator(name="",sequenceName="SEQ_TM_CAR_OWNER")
    private Integer userId;

    @Column(name = "USER_NAME")
    private String userName;

    @Column(name = "BIRTHDAY")    
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;

    @Column(name = "SEX")
    private Short sex;

    @Column(name = "PHONE")
    private String phone;

    @Column(name = "WX_CODE")
    private String wxCode;

    @Column(name = "NICKNAME")
    private String nickname;

    @Column(name = "IDENTITY_CARD")
    private String identityCard;

    @Column(name = "USER_TYPE")
    private Short userType;

    @Column(name = "ICONS_PHOTO")
    private String iconsPhoto;

    @Column(name = "DRIVER_LICENSE_EXPIRED")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date driverLicenseExpired;

    @Column(name = "RECOMMENDED_NAME")
    private String recommendedName;

    @Column(name = "ADDRESS")
    private String address;

    @Column(name = "REGISTER_DATE")
    private Date registerDate;

    @Column(name = "STATUS")
    private Short status;

    @Column(name = "COUNT")
    private Short count;

    @Column(name = "LOG_TIME")
    private Date logTime;

    @Column(name = "HINT_STAT")
    private Short hintStat;

    @Column(name = "CITY")
    private String city;

    @Column(name = "PROVINCE")
    private String province;

    @Column(name = "MARITAL_STATUS")
    private Short maritalStatus;

    @Column(name = "MARRIAGE")
    private Short marriage;
    
    @Column(name = "PASSWORD")
    private String password;
    
    @Column(name = "DEALER_CODE")
    private String dealerCode;

	public String getDealerCode() {
		return dealerCode;
	}

	public void setDealerCode(String dealerCode) {
		this.dealerCode = dealerCode;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	/**
     * @return USER_ID
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * @return USER_NAME
     */
    public String getUserName() {
        return userName;
    }

    /**
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * @return BIRTHDAY
     */
    public Date getBirthday() {
        return birthday;
    }

    /**
     * @param birthday
     */
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    /**
     * @return SEX
     */
    public Short getSex() {
        return sex;
    }

    /**
     * @param sex
     */
    public void setSex(Short sex) {
        this.sex = sex;
    }

    /**
     * @return PHONE
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * @return WX_CODE
     */
    public String getWxCode() {
        return wxCode;
    }

    /**
     * @param wxCode
     */
    public void setWxCode(String wxCode) {
        this.wxCode = wxCode;
    }

    /**
     * @return NICKNAME
     */
    public String getNickname() {
        return nickname;
    }

    /**
     * @param nickname
     */
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    /**
     * @return IDENTITY_CARD
     */
    public String getIdentityCard() {
        return identityCard;
    }

    /**
     * @param identityCard
     */
    public void setIdentityCard(String identityCard) {
        this.identityCard = identityCard;
    }

    /**
     * @return USER_TYPE
     */
    public Short getUserType() {
        return userType;
    }

    /**
     * @param userType
     */
    public void setUserType(Short userType) {
        this.userType = userType;
    }

    /**
     * @return ICONS_PHOTO
     */
    public String getIconsPhoto() {
        return iconsPhoto;
    }

    /**
     * @param iconsPhoto
     */
    public void setIconsPhoto(String iconsPhoto) {
        this.iconsPhoto = iconsPhoto;
    }

    /**
     * @return DRIVER_LICENSE_EXPIRED
     */
    public Date getDriverLicenseExpired() {
        return driverLicenseExpired;
    }

    /**
     * @param driverLicenseExpired
     */
    public void setDriverLicenseExpired(Date driverLicenseExpired) {
        this.driverLicenseExpired = driverLicenseExpired;
    }

    /**
     * @return RECOMMENDED_NAME
     */
    public String getRecommendedName() {
        return recommendedName;
    }

    /**
     * @param recommendedName
     */
    public void setRecommendedName(String recommendedName) {
        this.recommendedName = recommendedName;
    }

    /**
     * @return ADDRESS
     */
    public String getAddress() {
        return address;
    }

    /**
     * @param address
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * @return REGISTER_DATE
     */
    public Date getRegisterDate() {
        return registerDate;
    }

    /**
     * @param registerDate
     */
    public void setRegisterDate(Date registerDate) {
        this.registerDate = registerDate;
    }

    /**
     * @return STATUS
     */
    public Short getStatus() {
        return status;
    }

    /**
     * @param status
     */
    public void setStatus(Short status) {
        this.status = status;
    }

    /**
     * @return COUNT
     */
    public Short getCount() {
        return count;
    }

    /**
     * @param count
     */
    public void setCount(Short count) {
        this.count = count;
    }

    /**
     * @return LOG_TIME
     */
    public Date getLogTime() {
        return logTime;
    }

    /**
     * @param logTime
     */
    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }

    /**
     * @return HINT_STAT
     */
    public Short getHintStat() {
        return hintStat;
    }

    /**
     * @param hintStat
     */
    public void setHintStat(Short hintStat) {
        this.hintStat = hintStat;
    }

    /**
     * @return CITY
     */
    public String getCity() {
        return city;
    }

    /**
     * @param city
     */
    public void setCity(String city) {
        this.city = city;
    }

    /**
     * @return PROVINCE
     */
    public String getProvince() {
        return province;
    }

    /**
     * @param province
     */
    public void setProvince(String province) {
        this.province = province;
    }

    /**
     * @return MARITAL_STATUS
     */
    public Short getMaritalStatus() {
        return maritalStatus;
    }

    /**
     * @param maritalStatus
     */
    public void setMaritalStatus(Short maritalStatus) {
        this.maritalStatus = maritalStatus;
    }

    /**
     * @return MARRIAGE
     */
    public Short getMarriage() {
        return marriage;
    }

    /**
     * @param marriage
     */
    public void setMarriage(Short marriage) {
        this.marriage = marriage;
    }
}